import { getFormatterPrice } from '@const/filter'
// 产品大类
export const PRODUCT_CATEGORY = {
  1: '高值',
  2: '低值',
  3: '试剂',
  4: '设备',
  5: '低值'
}
export const beforeListColumns = [
  {
    prop: 'prodName',
    label: '器械名称'
  },
  {
    prop: 'specModel',
    label: '规格型号'
  },
  {
    prop: 'prodUnit',
    label: '单位',
    width: '50'
  },
  {
    prop: 'prodNum',
    label: '数量',
    width: '50'
  },
  {
    prop: 'prodPrice',
    label: '单价',
    formatter: row => getFormatterPrice(Number(row.prodPrice) || 0)
  },
  {
    prop: 'prodAmount',
    label: '金额',
    formatter: row => getFormatterPrice(Number(row.prodAmount) || 0)
  },
  {
    prop: 'prodBatch',
    label: '批号/序列号'
  },
  {
    prop: 'expiryDate',
    label: '有效期至'
  },
  {
    prop: 'manufacturer',
    label: '生产企业'
  },
  {
    prop: 'certNo',
    label: '注册证号（或备案号）',
    width: '170'
  },
  {
    prop: 'storageConditions',
    label: '储运条件'
  },
  {
    prop: 'qualitySituation',
    label: '质量情况'
  }
]
export const afterListColumns = [
  ...beforeListColumns,
  {
    prop: 'invoiceNo',
    label: '发票号'
  }
]
export const formColumns = [
  { label: '购货单位', value: 'purchaseUnits' },
  { label: '收货地址', value: 'receiveAddress' },
  { label: '编号', value: 'deliveryCode' }
]
export const footColumns = [
  { label: '白票', value: '开票' },
  { label: '红联', value: '客户' },
  { label: '红联', value: '财务' },
  { label: '黄联', value: '仓库' },
  { label: '电话', value: '--' }
]
export const infoColumns = [
  { label: '开票员', value: 'drawer' },
  { label: '发货员', value: 'shipper' },
  { label: '复核员', value: 'reviewer' },
  { label: '财务', value: 'finance' },
  { label: '签收人', value: 'signedBy' }
]
